/*
 *  全局路由
 */
import 'package:fish_redux/fish_redux.dart';
import 'package:app_happy_flutter/code/Feature/Org/page.dart';
import 'package:app_happy_flutter/code/Feature/grid/page.dart';
import 'package:app_happy_flutter/code/Feature/list/page.dart';
import 'package:app_happy_flutter/code/Base/TabBar/page.dart';
class AppRoute {
  static AbstractRoutes _global;

  static AbstractRoutes get global {
    if (_global == null) {
      _global = PageRoutes(pages: <String, Page<Object, dynamic>>{
        RoutePath.todoTabBar: PersonListPage(),
        RoutePath.todoEntrancePage: OrganizationPage(),
        RoutePath.todoGridPage: GridPage(),
        RoutePath.todoListPage: ListPage(),
      });
    }
    return _global;
  }
}

//路由Key
class RoutePath {
  static const String Base = "fish_redux_";///使用fish_redux的page时，需要加前缀，做路由判断
  static const String todoTabBar = Base + 'tabbar_page';///<跳转至组织架构页面
  static const String todoEntrancePage = Base + 'entrance_page';///<跳转至组织架构页面
  static const String todoGridPage = Base + 'grid_page';///<跳转至集合视图页面
  static const String todoListPage = Base + 'list_page';///<跳转至列表视图页面
}